<?php

function view_footer_1($config) { // home 
	?>
	</div>
        </div>
        <div class="clear"></div>
    </div>
    <div style="background: transparent url('<?php echo image_url; ?>/wayang.png') no-repeat right top;position: absolute;bottom: 55px;left: 50%;margin-left: -500px;width:1000px;height:300px;">
    </div>

    <?php
    view_footer_core($config);
}

function view_footer_2($config) { // home 
	?>
	</div>
        </div>
        <div class="clear"></div>
    </div>
    <div style="background: transparent url('<?php echo image_url; ?>/wayang.png') no-repeat left top;position: absolute;bottom: 55px;left: 50%;margin-left: -500px;width:1000px;height:300px;">
    </div>

    <?php
    view_footer_core($config);
}

function view_footer_core($config) { // sanggar dll
    $db = new db($config);
	//kontak
	$result = $db->query("SELECT * FROM `footer` WHERE 1");
	$param['foot'] = $result[0];
	?>
    <div style="position: absolute;bottom: 0;width:100%;height:300px">
        <div class="footer">
			<div style="margin: 0 auto;width: 1000px">
				<div style="color:#ffffff;font-size:13px;font-style:italic;float:left;margin:220px 0 0 235px">
					<div style="padding:0 0 5px">
						<a href="<?php echo $config['home_url'].'cstudio'; ?>">Creative Studio</a>
					</div>
					<div style="padding:0 0 5px">
						<a href="<?php echo $config['home_url'].'bimbel'; ?>">Bimbel Seni Rupa</a>
					</div>
					<div style="padding:0 0 5px">
						<a href="<?php echo $config['home_url'].'sanggar'; ?>">Sanggar Kebudayaan</a>
					</div>
				</div>
				<div style="color:#ffffff;font-size:13px;font-style:italic;float:left;margin:220px 0 0 10px">
					<div style="padding:0 0 5px">
						<a target="_blank" href="http://facebook.com/<?php echo $param['foot']['facebook']; ?>">Facebook</a>
					</div>
					<div style="padding:0 0 5px">
						<a target="_blank" href="http://twitter.com/<?php echo $param['foot']['twitter']; ?>">Twitter</a>
					</div>
				</div>
				<div style="color:#ffffff;font-size:14px;font-style:italic;float:right;margin:220px 0 0 0">
					<div style="padding:0 0 5px">
						<?php echo $param['foot']['alamat']; ?>
					</div>
					<div style="padding:0 0 5px">
						<?php echo $param['foot']['kontak']; ?>
					</div>
				</div>
				<div class="clear"></div>
			</div>
        </div>
    </div>
</body>
</html>

    <?php
}
